package com.mini.model;

import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import java.io.Serializable;
import java.util.Date;

/**
 * @description: 历史计划表
 */
@Entity
@Data
@NoArgsConstructor
@AllArgsConstructor
public class BusinessPlanSiteHistory implements Serializable {

    public BusinessPlanSiteHistory(Long planSite, String planName, Long lessonSite, Long nextDayLessonSite) {
        this.planSite = planSite;
        this.planName = planName;
        this.lessonSite = lessonSite;
        this.nextDayLessonSite = nextDayLessonSite;
    }

    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private String id;

    @ApiModelProperty(value = "计划站点")
    private Long planSite;

    @ApiModelProperty(value = "计划名称")
    private String planName;

    @ApiModelProperty(value = "小课站点")
    private Long lessonSite;

    @ApiModelProperty(value = "次日小课站点")
    private Long nextDayLessonSite;

    @ApiModelProperty(value = "状态")
    private Integer status = 1;

    private Date createTime;
    private Date updateTime;

}
